package com.jianghu.view;

import com.jianghu.R;

import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;

public class HeaderOfUserTrends extends LinearLayout {

	private Context context;
	private TextView textViewofFans;
	private TextView textViewofFriends;
	private TextView textViewofLikes;
	private TextView textViewofShares;

	public HeaderOfUserTrends(Context context, AttributeSet attrs) {
		super(context, attrs);
		initialize(context);
	}

	public HeaderOfUserTrends(Context context) {
		super(context);
		initialize(context);
	}

	private void initialize(Context context) {
		this.context = context;
		View view = LayoutInflater.from(this.context).inflate(
				R.layout.header_listview_user_trends, null);
		textViewofFans = (TextView) view.findViewById(R.id.numberoffans);
		textViewofFriends = (TextView) view.findViewById(R.id.numberoffriends);
		textViewofLikes = (TextView) view.findViewById(R.id.numberoflikes);
		textViewofShares = (TextView) view.findViewById(R.id.numberofshares);
		addView(view);
	}

	public void setTextViewforFans(String text) {
		textViewofFans.setText(text);
	}

	public void setTextViewforFriends(String text) {
		textViewofFriends.setText(text);
	}

	public void setTextViewforLikes(String text) {
		textViewofLikes.setText(text);
	}

	public void setTextViewforShares(String text) {
		textViewofShares.setText(text);
	}
}